package com.tem.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 目录产品
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("category_product")
@ApiModel(value="CategoryProduct对象", description="目录产品")
public class CategoryProduct implements Serializable {
    private static final long serialVersionUID=8565767923421L;
    @ApiModelProperty(value = "自定义目录管理产品")
    @TableId(value = "category_product_id", type = IdType.AUTO)
    private Long categoryProductId;

    @ApiModelProperty(value = "目录")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "产品")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "排序 降序")
    @TableField("seq")
    private Integer seq;

}